package com.adan.content.mapper;

import com.adan.content.model.dto.CourseCategoryTreeDto;
import com.adan.content.model.po.CourseCategory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 课程分类 Mapper 接口
 * </p>
 *
 * @author adan
 */
public interface CourseCategoryMapper extends BaseMapper<CourseCategory> {

    /**
     * 查询分类信息
     * @return CourseCategoryTreeDto
     */
    @Select("select * from xc_content.course_category")
    public List<CourseCategoryTreeDto> selectTreeNodes();
}
